package com.lotusfall.controller;

import com.lotusfall.service.StudentService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class StudentController {

    @Resource
    private StudentService studentService;

    @ResponseBody
    @RequestMapping("student")
    public String queryStudent(Long id){
        return studentService.queryStudent(id).toString();
    }
}
